cmake_minimum_required(VERSION 3.10)
project(imgui_test)

# 设置策略以使用 GLVND
if(POLICY CMP0072)
    cmake_policy(SET CMP0072 NEW)
endif()

set(CMAKE_CXX_STANDARD 17)

find_package(imgui REQUIRED)
find_package(OpenGL REQUIRED)
find_package(GLEW REQUIRED)

include_directories(
        ${imgui_INCLUDE_DIRS}
)

add_executable(01_imgui_main src/01_imgui_main.cpp)
add_executable(02_imgui_main src/02_imgui_main.cpp)
add_executable(03_imgui_main src/03_imgui_main.cpp)
add_executable(04_imgui_main src/04_imgui_main.cpp)
target_link_libraries(01_imgui_main ${imgui_LIBRARIES})
target_link_libraries(02_imgui_main ${imgui_LIBRARIES})
target_link_libraries(03_imgui_main ${imgui_LIBRARIES})
target_link_libraries(04_imgui_main ${imgui_LIBRARIES})
